﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MediSIIM.BizComponent.GuiZhouSXNB
{
    public class ErrorMsg
    {
        public const string SYSTEM_0000 = "成功";
        public const string SYSTEM_0001 = "病人医疗证号错误";
        public const string SYSTEM_0002 = "病人姓名错误";
        public const string SYSTEM_0003 = "病人姓名参合状态错误";
        public const string SYSTEM_0004 = "成员编号在列表中不存在";
        public const string SYSTEM_0005 = "判断暂存错误";
        public const string SYSTEM_0006 = "获取暂存错误";
        public const string SYSTEM_0007 = "获取成员信息错误";
        public const string SYSTEM_0008 = "获取成员信息不存在";
        public const string SYSTEM_0009 = "成员当前状态为空";
        public const string SYSTEM_0010 = "成员当前状态(0.正常1.注销)不正常";
        public const string SYSTEM_0011 = "获取家庭信息错误";
        public const string SYSTEM_0012 = "获取年龄出错";
        public const string SYSTEM_0013 = "住院信息为空";
        public const string SYSTEM_0014 = "上传时住院信息中个人编码错误";
        public const string SYSTEM_0015 = "上传时住院信息中家庭编码错误";
        public const string SYSTEM_0016 = "就诊类型错误";
        public const string SYSTEM_0017 = "入院时间为空";
        public const string SYSTEM_0018 = "出院时间不能在入院时间前";
        public const string SYSTEM_0019 = "就医机构代码错误";
        public const string SYSTEM_0020 = "就医机构类别:不能为空";
        public const string SYSTEM_0021 = "入院科室代码错误";
        public const string SYSTEM_0022 = "出院科室代码错误";
        public const string SYSTEM_0023 = "入院状态代码错误";
        public const string SYSTEM_0024 = "出院状态代码错误";
        public const string SYSTEM_0025 = "疾病代码错误";
        public const string SYSTEM_0026 = "补助账户类别错误";
        public const string SYSTEM_0027 = "补助类别错误";
        public const string SYSTEM_0028 = "核算机构错误";
        public const string SYSTEM_0029 = "要删除的明细的主记录不存在";
        public const string SYSTEM_0030 = "要删除的明细的主记录不是暂存状态";
        public const string SYSTEM_0031 = "计算失败";
        public const string SYSTEM_0032 = "结算失败";
        public const string SYSTEM_0033 = "冲红失败";
        public const string SYSTEM_0034 = "要上传的门诊明细对应的主记录丌存在";
        public const string SYSTEM_0035 = "要上传的住院明细对应的主记录丌存在";
        public const string SYSTEM_0036 = "病人在其它医院有没有结算的记录";
        public const string SYSTEM_0037 = "计算的住院记录丌存在，请检查删除否";
        public const string SYSTEM_0038 = "结算的住院记录丌存在，请检查删除否";
        public const string SYSTEM_0039 = "要冲红的记录丌存在";
        public const string SYSTEM_0040 = "已结算数据无法进行预结算";
        public const string SYSTEM_0041 = "计算的门诊记录丌存在";
        public const string SYSTEM_0042 = "记录已结算或冲毁丌能再上传明细";
        public const string SYSTEM_0043 = "住院数据丌存在或者未结算";
        public const string SYSTEM_0044 = "优抚计算失败";
        public const string SYSTEM_0045 = "未进行优抚住院申请";
        public const string SYSTEM_0046 = "丌是优抚补偿定点医疗机构或者定点医疗机构优抚补偿未启用";
        public const string SYSTEM_0098 = "住院号重复，核实是否已结算";
        public const string SYSTEM_0099 = "机构已禁用";

        public static string GetErrorMessage(string name)
        {
            switch (name)
            {
                case "SYSTEM_0000": return SYSTEM_0000;
                case "SYSTEM_0001": return SYSTEM_0001;
                case "SYSTEM_0002": return SYSTEM_0002;
                case "SYSTEM_0003": return SYSTEM_0003;
                case "SYSTEM_0004": return SYSTEM_0004;
                case "SYSTEM_0005": return SYSTEM_0005;
                case "SYSTEM_0006": return SYSTEM_0006;
                case "SYSTEM_0007": return SYSTEM_0007;
                case "SYSTEM_0008": return SYSTEM_0008;
                case "SYSTEM_0009": return SYSTEM_0009;
                case "SYSTEM_0010": return SYSTEM_0010;
                case "SYSTEM_0011": return SYSTEM_0011;
                case "SYSTEM_0012": return SYSTEM_0012;
                case "SYSTEM_0013": return SYSTEM_0013;
                case "SYSTEM_0014": return SYSTEM_0014;
                case "SYSTEM_0015": return SYSTEM_0015;
                case "SYSTEM_0016": return SYSTEM_0016;
                case "SYSTEM_0017": return SYSTEM_0017;
                case "SYSTEM_0018": return SYSTEM_0018;
                case "SYSTEM_0019": return SYSTEM_0019;
                case "SYSTEM_0020": return SYSTEM_0020;
                case "SYSTEM_0021": return SYSTEM_0021;
                case "SYSTEM_0022": return SYSTEM_0022;
                case "SYSTEM_0023": return SYSTEM_0023;
                case "SYSTEM_0024": return SYSTEM_0024;
                case "SYSTEM_0025": return SYSTEM_0025;
                case "SYSTEM_0026": return SYSTEM_0026;
                case "SYSTEM_0027": return SYSTEM_0027;
                case "SYSTEM_0028": return SYSTEM_0028;
                case "SYSTEM_0029": return SYSTEM_0029;
                case "SYSTEM_0030": return SYSTEM_0030;
                case "SYSTEM_0031": return SYSTEM_0031;
                case "SYSTEM_0032": return SYSTEM_0032;
                case "SYSTEM_0033": return SYSTEM_0033;
                case "SYSTEM_0034": return SYSTEM_0034;
                case "SYSTEM_0035": return SYSTEM_0035;
                case "SYSTEM_0036": return SYSTEM_0036;
                case "SYSTEM_0037": return SYSTEM_0037;
                case "SYSTEM_0038": return SYSTEM_0038;
                case "SYSTEM_0039": return SYSTEM_0039;
                case "SYSTEM_0040": return SYSTEM_0040;
                case "SYSTEM_0041	": return SYSTEM_0041;
                case "SYSTEM_0042": return SYSTEM_0042;
                case "SYSTEM_0043": return SYSTEM_0043;
                case "SYSTEM_0044": return SYSTEM_0044;
                case "SYSTEM_0045": return SYSTEM_0045;
                case "SYSTEM_0046": return SYSTEM_0046;
                case "SYSTEM_0098": return SYSTEM_0098;
                case "SYSTEM_0099": return SYSTEM_0099;
                default: return "错误编码：" + name;
            }
        }
    }
}